

import java.net.*;

public class Player {
    
    String name;
    InetAddress IP;
    int gameID, port, hitNumber;
    
    public Player()
    {
        name = null;
        IP = null;
    }
    
    public Player(String initName, InetAddress initIP)
    {
        name = initName;
        IP = initIP;
    }
    
    public String getName()
    {
        return name;
    }
    
    public InetAddress getIP()
    {
        return IP;
    }
    
    public int getPort()
    {
    	return port;
    }
    
    public int getGameID()
    {
    	return gameID;
    }
    
    public boolean equals(Player otherPlayer)
    {
        if(name.equalsIgnoreCase(otherPlayer.getName()) &&
              IP.equals(otherPlayer.getIP()))
            return true;
        else
            return false;
    }
}
